package com.tarena.csmall.order.web.mapper;

import cn.tedu.mall.pojo.order.model.OmsOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface OrderMapper {
    void insertOmsOrder(OmsOrder order);
    @Select("select count(id) from oms_order where sn=#{sn}")
    int selectCountBySn(String sn);
    @Select("select * from oms_order where sn=#{sn}")
    OmsOrder selectOrderBySn(String sn);
    @Update("update oms_order set state=#{state} where sn=#{sn}")
    void updateStatusBySn(@Param("sn") String sn, @Param("state")int state);
}
